#pragma once

#include <afxpriv.h>
// CTitleBar dialog

class CTitleBar : public CDialogBar
{
	DECLARE_DYNAMIC(CTitleBar)

public:
	CTitleBar(CWnd* pParent = NULL);   // standard constructor
	virtual ~CTitleBar();

	BOOL Create( CWnd* pParentWnd, int nHeight = 0); 

// Dialog Data
	enum { IDD = IDD_TITLE_BAR };

	void SetHeigh(int nHeight) ;
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	CSize m_sizeDocked; 
	CSize m_sizeFloating; 
	BOOL m_bChangeDockedSize; // Indicates whether to keep 


	
	DECLARE_MESSAGE_MAP()
public:
	afx_msg LRESULT OnInitDialog(UINT, LONG);
	virtual CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz);
};
